Skip to content

Instantly share code, notes, and snippets.

@CHIPTRONEX7879
CHIPTRONEX7879 / index.html
Created May 30, 2023 13:38
Online HTML Editor
<head>
<link href='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/codemirror.css' rel='stylesheet'>
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/codemirror.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/mode/htmlmixed/htmlmixed.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/mode/javascript/javascript.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/mode/xml/xml.js'></script>
</head>
<body>
<div style="background-color: #FFF; max-width: 800px; margin: auto; padding: 20px;">
<html>
<head>
<title>Plain Text Editor</title>
<script
crossorigin
src="https://unpkg.com/react@18/umd/react.production.min.js"
></script>
<script
crossorigin
src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"
@emilefraser
emilefraser / mac-setup-script.sh
Last active May 10, 2024 15:37
[Mac Setup Script] #mac #install #configure
# Complete macOS Setup
# From clean install to fully configured.
# Step 1: Init Environment
#Temporarily Disable sudo Password Timeout
#The sudo password timeout is re-enabled at the end of this script. ##+BEGIN_SRC sh sudo tee /etc/sudoers.d/timeout > /dev/null <<-EOF Defaults timestamp_timeout=-1 EOF ##+END_SRC
##+BEGIN_SRC sh sudo tee /etc/sudoers.d/installer > /dev/null <<-EOF %admin ALL=(ALL) NOPASSWD:SETENV: /usr/sbin/installer EOF ##+END_SRC
@spacelatte
spacelatte / make.@$R.js
Created April 22, 2017 12:03
cot editor 'make' command apple-script js plugin
var App = Application("CotEditor")
App.includeStandardAdditions = true;
//var file = App.document.file()[0]
var file = App.documents[0].file();
var sliced = file.toString().split("/");
@kevin-chau
kevin-chau / editor.html
Created April 5, 2022 21:46
Chess board editor for chessboardjs
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>chessboardjs.com &raquo; Homepage</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="/favicon.ico">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
@tordans
tordans / index.html
Last active May 10, 2024 15:36
iD Editor Preset Preview Experiment
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>iD Test</title>
<link rel="stylesheet" href="dist/iD.css" />
<link
rel="icon"
type="image/png"
href="data:image/png;base64,iVBORw0KGgo="
@greggraham
greggraham / s_log.txt
Created September 14, 2018 18:19
Mu Editor log file for bug report
2018-09-14 09:24:46,327 - root:111(run) INFO:
-----------------
Starting Mu 1.0.0.beta.16
2018-09-14 09:24:46,327 - root:112(run) INFO: uname_result(system='Windows', node='LLab09', release='10', version='10.0.17134', machine='AMD64', processor='Intel64 Family 6 Model 60 Stepping 3, GenuineIntel')
2018-09-14 09:24:46,327 - root:113(run) INFO: Python path: ['C:\\Program Files\\Mu\\pkgs', 'C:\\Program Files\\Mu\\Python\\python36.zip', 'C:\\Program Files\\Mu\\Python', 'C:\\Program Files\\Mu\\pkgs', 'C:\\Program Files\\Mu\\pkgs\\IPython\\extensions']
2018-09-14 09:24:46,436 - mu.logic:542(__init__) INFO: Setting up editor.
2018-09-14 09:24:46,436 - mu.logic:556(__init__) INFO: Settings path: C:\Users\formii\AppData\Local\python\mu\settings.json
2018-09-14 09:24:46,436 - mu.logic:557(__init__) INFO: Session path: C:\Users\formii\AppData\Local\python\mu\session.json
@raphaelguye
raphaelguye / XcodeFormatting.sh
Last active May 10, 2024 15:36
Xcode Script - XcodeFormatting
set -e
defaults write com.apple.dt.Xcode DVTTextEditorTrimTrailingWhitespace -bool YES
defaults write com.apple.dt.Xcode DVTTextEditorTrimWhitespaceOnlyLines -bool YES
defaults write com.apple.dt.Xcode DVTTextIndentTabWidth -int 2
defaults write com.apple.dt.Xcode DVTTextIndentWidth -int 2
defaults write com.apple.dt.Xcode DVTTextPageGuideLocation -int 100
@oliverkrakora
oliverkrakora / apple-dev-issues
Last active May 10, 2024 15:36
apple dev issues
# A reference to document problems that I encountered related to apple development and how to fix them
## Git
### Define git credential helper of choice
`git config --global credential.helper osxkeychain`
### Add credentials to git credential helper
`git credential fill`
now you need to enter the following information, confirming each line of input with enter, when you are done leave one line empty and confirm again with enter
@kitce
kitce / RAMDisk.scpt
Last active May 10, 2024 15:36
My macOS RAM disk Apple Script
do shell script "
size=8
diskName=RAMDisk
dir=/Volumes/$diskName
if ! test -e $dir ; then
diskutil erasevolume HFS+ $diskName `hdiutil attach -nomount ram://$(($size*1024*1024*2))`